package com.universe.springmvc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.universe.springmvc.dao.TeacherDao;
import com.universe.springmvc.pojo.Teacher;
import com.universe.springmvc.service.TeacherService;

@Service
public class TeacherServiceImpl implements TeacherService {

	@Autowired
	public TeacherDao teacherDao;
	
	@Override
	public Teacher getTeacherById(Integer id){
		
		return teacherDao.getTeacherById(id);
	}

	@Override
	public List<Teacher> getAllTeacher() {

		return teacherDao.getAllTeacher();
	}
}
